import { axios } from '@/utils/request'

export const urlPrefix = '/system/file/'

export function getObj(parameter) {
  return axios({
    url: urlPrefix,
    method: 'get',
    params: parameter
  })
}

export function deleteObj(parameter) {
  return axios({
    url: urlPrefix + 'object/',
    method: 'delete',
    params: parameter
  })
}

export function uploadObj(parameter,process) {
  return axios({
    url: urlPrefix + 'object/',
    method: 'post',
    data: parameter,
    onUploadProgress: process,
    timeout: 600000
  })
}